<div class="form">

	<?php
	$properties = array(
		'id'=>'testimony-form',
		'htmlOptions'=>array('enctype'=>'multipart/form-data'),
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model, 'file'); ?>
		<?php echo $form->fileField($model,
				'file'); ?>
		<?php echo $form->error($model, 'file'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,
			'name'); ?>
		<?php echo $form->textField($model, 'name',
			array('size'=>60, 'maxlength'=>255)); ?>
		<?php echo $form->error($model,
			'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,
			'address'); ?>
		<?php echo $form->textField($model, 'address',
			array('size'=>60, 'maxlength'=>255)); ?>
		<?php echo $form->error($model,
			'address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,
			'value'); ?>
		<?php echo $form->textArea($model, 'value',
			array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model, 'value'); ?>
	</div>

	<div class="row buttons">
		<?php
		$label = $model->isNewRecord ? 'Create' : 'Save';
		echo CHtml::submitButton($label);
		?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->